/*
 * BlueAdmissionControl.h
 *
 *  Created on: 12-12-2013
 *      Author: Tomasz Lis
 */

#ifndef BLUEADMISSIONCONTROL_H_
#define BLUEADMISSIONCONTROL_H_

#include <csimplemodule.h>

#include <omnetpp.h>
#include <vector>
#include <packet_m.h>
#include <fstream>

using namespace std;

class BlueAdmissionControl: public cSimpleModule {
public:
    simtime_t lastPacketTime;
    cLongHistogram histogram;
    cOutVector vectorA;

    simtime_t lastForward;
    double p;
    int timePeriod;
    vector<Packet*> queue;
    signed int maxSize;
    cMessage* event;
    double freezeTime;
    double iterator;
    int numberOfDeletedMinPrior;
    int numberOfDeletedMaxPrior;
    int numberOfDeleted;
    int numberOfForward;
    BlueAdmissionControl();
    virtual ~BlueAdmissionControl();
    virtual void initialize();
    virtual void handleMessage(cMessage* msg);
    void sendPacket();
    virtual void finish();
};

Define_Module(BlueAdmissionControl);

#endif /* BLUEADMISSIONCONTROL_H_ */
